import _sfc_main from "./index.vue2.mjs";
import { resolveComponent, createElementBlock, openBlock, createVNode, withCtx, createBlock, toDisplayString } from "vue";
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
const _hoisted_1 = { class: "ep-container" };
const _hoisted_2 = {
  key: 1,
  class: "ep-detail-content"
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  const _component_el_input = resolveComponent("el-input");
  const _component_el_form_item = resolveComponent("el-form-item");
  return openBlock(), createElementBlock("div", _hoisted_1, [
    createVNode(_component_el_form_item, {
      label: _ctx.options.label,
      prop: _ctx.options.name,
      "show-message": !_ctx.isDetail,
      class: "ep-form-item"
    }, {
      default: withCtx(() => [
        !_ctx.isDetail ? (openBlock(), createBlock(_component_el_input, {
          key: 0,
          class: "ep-amount-container",
          modelValue: _ctx.fieldModel,
          "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.fieldModel = $event),
          type: "text",
          readonly: _ctx.options.readonly,
          placeholder: _ctx.options.placeholder,
          min: _ctx.options.min,
          max: _ctx.options.max,
          onInput: _ctx.handleInput,
          onBlur: _cache[1] || (_cache[1] = ($event) => _ctx.handleBlurEvent(_ctx.fieldModel))
        }, null, 8, ["modelValue", "readonly", "placeholder", "min", "max", "onInput"])) : (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(_ctx.fieldModel), 1))
      ]),
      _: 1
    }, 8, ["label", "prop", "show-message"])
  ]);
}
const Index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
  Index as default
};
